<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>玩竞猜，赢百万奖金！</title>
</head>
<body>
<div align="center">
	<%
		String msg = (String)request.getAttribute("msg");
		if(msg != null){
			out.write("<font color='red'>" + msg + "</font>");
		}
	%>
	<%
		Integer times = (Integer) request.getAttribute("times");
		if(times != null){
			out.write(",你还有 " + (5-times) + " 次机会！");
		}
	%>
	
	<form action="/day13/Guess" method="post">
		请输入一个 [1～30] 之间的整数：<br/>
		<input type="text" name="guess" /><br/>
		<%
			if(times != null){
		%>
		<input type="hidden" name="times" value="<%=times %>"/>
		<%
			}
		%>
		<input type="submit" value="开始竞猜" />
	</form>
</div>
</body>
</html>